<?#//v.3.0.0

#///////////////////////////////////////////////////////
#//  COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////

	if(basename($PHP_SELF) != "user_login.php")
	{
		#// Check if we are in Maintainance mode
		#// And if the logged in user is the superuser
		$query = "SELECT * FROM PHPAUCTIONXL_maintainance";
		$res = mysql_query($query);
		if($res && @mysql_num_rows($res) > 0)
		{
			$MAINTAINANCE = mysql_fetch_array($res);

			if($MAINTAINANCE[active] == 'y' && $_SESSION[PHPAUCTION_LOGGED_IN_USERNAME] != $MAINTAINANCE[superuser])
			{
				print $MAINTAINANCE[maintainancetext];
				exit;
			}
		}
	}
?>